$baseColor: var(--theme-color);

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: $baseColor;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #448ef6;
}

::-webkit-scrollbar-track {
    border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

body {
    background-color: #f5f5f5;
    background-attachment: fixed;
    background-size: cover;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    text-decoration: none;
    color: #555;
}

input,
button,
textarea {
    outline: none;
    -webkit-appearance: none;
}

button {
    cursor: pointer;
}

em,
i {
    font-style: normal;
}

li {
    list-style: none;
}

img {
    border: 0;
    vertical-align: middle;
}

img[src=''],
img:not([src]) {
    border: 0;
    opacity: 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes showComment {
    0% {
        transform: translate3d(0, 100px, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.j-main {
    display: flex;
    padding: 135px 0 30px;
    .j-left {
        flex: 1;
        overflow: hidden;
    }
}

.j-container {
    width: 1220px;
    margin: 0 auto;
}

.j-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.35s;
    background: #fff;
    box-shadow: 0 5px 40px 0 rgba(17, 58, 93, 0.1);
    z-index: 2020520;
    .above {
        display: flex;
        height: 60px;
        .logo {
            display: flex;
            align-items: center;
            margin-right: 20px;
            img {
                max-width: 150px;
                max-height: 60px;
            }
        }
        .link {
            flex: 1;
            overflow-x: auto;
            overflow-y: hidden;
            display: flex;
            margin-right: 20px;
            a {
                position: relative;
                padding: 0 8px;
                margin-right: 20px;
                height: 60px;
                line-height: 60px;
                white-space: nowrap;
                &::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    opacity: 0;
                    width: 100%;
                    height: 2px;
                    transform: scaleX(0);
                    transition: all 0.35s;
                    background: $baseColor;
                }
                &.active {
                    color: $baseColor;
                    font-weight: 500;
                    &::after {
                        opacity: 1;
                        transform: scaleX(1);
                    }
                }
                &:hover {
                    color: $baseColor;
                    font-weight: 500;
                    &::after {
                        opacity: 1;
                        transform: scaleX(1);
                    }
                }
                &:last-child {
                    margin-right: 0;
                }
            }
        }
        .search {
            position: relative;
            display: flex;
            align-items: center;
            height: 60px;
            input {
                background: #f1f3fa;
                width: 170px;
                height: 34px;
                border: none;
                border-radius: 17px 0 0 17px;
                border: 1px solid transparent;
                padding: 0 32px 0 20px;
                color: #6c757d;
                transition: all 0.35s;
                &:focus {
                    background: #fff;
                    border: 1px solid $baseColor;
                    ~ img {
                        transform: translate3d(0, -50%, 0) rotateY(180deg);
                    }
                }
            }
            button {
                padding: 0 10px;
                height: 34px;
                border: none;
                outline: none;
                background: $baseColor;
                color: #fff;
                cursor: pointer;
                border-radius: 0 17px 17px 0;
                z-index: 1;
            }
            img {
                content: '';
                position: absolute;
                top: 50%;
                left: 142px;
                background: url(../img/upiocn.png);
                background-size: 100% 100%;
                transition: all 0.35s;
                transform: translate3d(100%, -50%, 0) rotateY(180deg);
            }
        }
    }
    .below {
        position: relative;
        border-top: 1px solid #f1f1f1;
        .j-container {
            display: flex;
            align-items: center;
            .navs {
                flex: 1;
                overflow-x: auto;
                a {
                    line-height: 45px;
                    margin-right: 24px;
                    font-size: 14px;
                    color: #888;
                    white-space: nowrap;
                    &.active {
                        color: $baseColor;
                    }
                    &:hover {
                        color: $baseColor;
                    }
                }
            }
            .button {
                position: relative;
                margin-left: 20px;
                .text {
                    display: flex;
                    align-items: center;
                    font-size: 14px;
                    cursor: pointer;
                    user-select: none;
                    color: #666;
                    svg {
                        width: 15px;
                        height: 15px;
                        fill: #666;
                        margin-right: 3px;
                    }
                    &:hover {
                        color: $baseColor;
                        svg {
                            fill: $baseColor;
                        }
                    }
                }
                .dropdown {
                    position: absolute;
                    top: 45px;
                    right: 0;
                    background: #fff;
                    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
                    opacity: 0;
                    visibility: hidden;
                    transform: perspective(600px) rotateX(-20deg);
                    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
                    transform-origin: top;
                    border-radius: 0 0 4px 4px;
                    z-index: 999;
                    border-top: 3px solid $baseColor;
                    padding: 15px;
                    &.active {
                        opacity: 1;
                        visibility: visible;
                        transform: rotateX(0);
                    }
                }
                .census {
                    width: 170px;
                    li {
                        white-space: nowrap;
                        color: #666;
                        font-size: 14px;
                        margin-bottom: 10px;
                        &:nth-child(1) {
                            span {
                                color: salmon;
                            }
                        }
                        &:nth-child(2) {
                            span {
                                color: seagreen;
                            }
                        }
                        &:nth-child(3) {
                            span {
                                color: steelblue;
                            }
                        }
                        &:last-child {
                            span {
                                color: fuchsia;
                            }
                            margin-bottom: 0;
                        }
                    }
                }
                .login-item {
                    width: 120px;
                    display: flex;
                    flex-direction: column;
                    a {
                        white-space: nowrap;
                        font-size: 14px;
                        text-align: center;
                        transition: all 0.35s;
                        margin-bottom: 10px;
                        &:last-child {
                            margin-bottom: 0;
                        }
                        &:hover {
                            color: $baseColor;
                        }
                    }
                }
                form {
                    .item {
                        margin-bottom: 15px;
                        &:last-child {
                            margin-bottom: 0;
                        }
                        span {
                            display: block;
                            color: #555;
                            font-size: 14px;
                            margin-bottom: 5px;
                        }
                        input {
                            width: 220px;
                            height: 34px;
                            padding: 0 10px;
                            border: 1px solid #ddd;
                            border-radius: 3px;
                            color: #666;
                            transition: all 0.35s;
                            &:focus {
                                border: 1px solid $baseColor;
                            }
                        }
                        button {
                            width: 220px;
                            height: 34px;
                            border: none;
                            background: $baseColor;
                            color: #fff;
                            border-radius: 3px;
                            transition: all 0.35s;
                            &:hover {
                                opacity: 0.9;
                            }
                        }
                    }
                }
            }
            .switch {
                width: 40px;
                height: 20px;
                position: relative;
                border-radius: 10px;
                margin-left: 20px;
                cursor: pointer;
                background: #999;
                &::before {
                    content: '弹';
                    font-size: 12px;
                    width: 20px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    position: absolute;
                    color: #888;
                    top: 0;
                    left: 0;
                    border-radius: 50%;
                    background-color: #fff;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
                }
                &:checked {
                    box-shadow: $baseColor 0 0 0 16px inset;
                    background-color: $baseColor;
                    &::before {
                        left: 20px;
                        color: $baseColor;
                    }
                }
                &.switch-anim {
                    transition: border cubic-bezier(0, 0, 0, 1) 0.4s, box-shadow cubic-bezier(0, 0, 0, 1) 0.4s;
                    &::before {
                        transition: left 0.3s;
                    }
                    &:checked {
                        box-shadow: $baseColor 0 0 0 16px inset;
                        background-color: $baseColor;
                        transition: border ease 0.4s, box-shadow ease 0.4s, background-color ease 1.2s;
                        &::before {
                            transition: left 0.3s;
                        }
                    }
                }
            }
        }
        .progress {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: $baseColor;
            opacity: 0.75;
            z-index: 2;
        }
    }
    &.active {
        transform: translate3d(0, -60px, 0);
        .below {
            border-top-color: transparent;
        }
    }
}

.j-actions {
    position: fixed;
    bottom: 75px;
    right: 75px;
    z-index: 2020520;
    .item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        margin-top: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    .color {
        position: relative;
        svg {
            width: 25px;
            height: 25px;
            fill: $baseColor;
        }
        .color-picker {
            position: absolute;
            bottom: 0;
            right: 50px;
            opacity: 0;
            visibility: hidden;
            transform: perspective(600px) rotateX(45deg);
            transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
            transform-origin: bottom;
            &.active {
                opacity: 1;
                visibility: visible;
                transform: rotateX(0);
            }
        }
    }
    .back {
        transform: scale(0);
        transition: all 0.35s;
        svg {
            width: 25px;
            height: 25px;
            fill: $baseColor;
        }
    }
}

.j-index {
    background: #fff;
    padding: 0 20px;
    box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
    border-radius: 8px;
    .hot-box {
        .title {
            display: none;
        }
        .hot {
            display: flex;
            justify-content: space-around;
            padding-top: 20px;
            li {
                width: 25%;
                padding: 0 7.5px;
                &:first-child {
                    padding-left: 0;
                }
                &:last-child {
                    padding-right: 0;
                }
                a {
                    position: relative;
                    display: block;
                    &:hover {
                        opacity: 0.85;
                        p {
                            color: $baseColor;
                        }
                    }
                    img {
                        width: 100%;
                        height: 125px;
                        object-fit: cover;
                        margin-bottom: 10px;
                        border-radius: 4px;
                    }
                    p {
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        text-align: center;
                        font-size: 14px;
                        font-weight: 500;
                    }
                    span {
                        display: flex;
                        align-items: center;
                        position: absolute;
                        top: 5px;
                        right: 5px;
                        background: $baseColor;
                        color: #fff;
                        height: 20px;
                        font-size: 12px;
                        padding: 0 7px;
                        border-radius: 2px;
                        max-width: 200px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                }
            }
        }
    }

    .ad {
        padding-top: 20px;
        a {
            display: block;
            img {
                width: 100%;
                height: 300px;
                object-fit: cover;
                border-radius: 4px;
            }
        }
    }
    .search-title {
        display: flex;
        align-items: center;
        height: 45px;
        color: #333;
        svg {
            width: 20px;
            height: 20px;
            margin-right: 5px;
        }
        p {
            display: flex;
            align-items: center;
            span {
                color: $baseColor;
                margin: 0 5px;
            }
        }
    }
    .empty-result {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding-bottom: 50px;
        padding-top: 50px;
        font-size: 16px;
        color: #666;
        user-select: none;
        svg {
            width: 100px;
            height: 100px;
            fill: #666;
            margin-bottom: 20px;
        }
    }
    .nav-title {
        display: flex;
        align-items: center;
        h2 {
            position: relative;
            color: $baseColor;
            font-size: 14px;
            font-weight: normal;
            height: 40px;
            line-height: 40px;
            &::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                width: 100%;
                height: 2px;
                background: $baseColor;
            }
        }
        .notice {
            display: flex;
            align-items: center;
            margin-left: auto;
            height: 40px;
            svg {
                width: 18px;
                height: 18px;
                margin-right: 5px;
                fill: #888;
            }
            a {
                color: #888;
                font-size: 14px;
                line-height: 20px;
                max-width: 300px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                &:hover {
                    color: $baseColor;
                }
            }
        }
    }
    .list {
        position: relative;
        width: 100%;
        display: flex;
        padding: 20px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        &::after {
            content: '';
            position: absolute;
            top: 20px;
            left: -20px;
            width: 4px;
            height: 25px;
            border-radius: 2px;
            background: $baseColor;
            transform: scaleY(0);
            transition: all 0.35s;
        }
        &:hover {
            .image {
                span {
                    transform: translate3d(0, 0, 0);
                }
            }
            &::after {
                transform: scaleY(1);
            }
        }
        .image {
            position: relative;
            width: 210px;
            min-width: 210px;
            height: 140px;
            min-height: 140px;
            margin-right: 20px;
            border-radius: 4px;
            overflow: hidden;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            span {
                position: absolute;
                top: 5px;
                right: 5px;
                background: $baseColor;
                height: 20px;
                line-height: 20px;
                padding: 0 10px;
                color: #fff;
                font-size: 12px;
                border-radius: 10px;
                transition: transform 0.35s;
                transform: translate3d(120%, 0, 0);
            }
            svg {
                width: 20px;
                height: 20px;
                position: absolute;
                top: 5px;
                left: 5px;
                fill: #fff;
            }
        }
        .info {
            flex: 1;
            overflow: hidden;
            .title {
                width: 100%;
                display: block;
                font-size: 20px;
                color: #444;
                margin-bottom: 10px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                user-select: none;
                &:hover {
                    color: $baseColor;
                }
            }
            .content {
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 14px;
                color: #999;
                text-align: justify;
                margin-bottom: 10px;
                transition: all 0.35s;
                &:hover {
                    opacity: 0.8;
                }
            }
            .meta {
                display: flex;
                align-items: center;
                user-select: none;
                .item {
                    display: flex;
                    align-items: center;
                    margin-right: 30px;
                    height: 20px;
                    font-size: 14px;
                    a {
                        color: #999;
                        font-size: 14px;
                        &:hover {
                            color: $baseColor;
                            text-decoration: underline;
                        }
                    }
                    svg {
                        width: 18px;
                        height: 18px;
                        fill: #999;
                        margin-right: 5px;
                    }
                    span {
                        color: #999;
                    }
                }
            }
        }
    }
}

.j-aside {
    margin-left: 20px;
    .aside {
        width: 260px;
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
        &:last-child {
            margin-bottom: 0;
        }
        h3 {
            border-bottom: 1px solid #ebebeb;
            font-size: 14px;
            font-weight: 500;
            height: 40px;
            line-height: 40px;
            padding: 0 15px;
            user-select: none;
            color: #333;
        }
    }
    .aside-ad {
        height: 195px;
        a {
            display: block;
            height: 100%;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
    .aside-user {
        background: #fff;
        padding: 45px 15px 15px;
        position: relative;
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120px;
            background: url(../img/aside-author-bg.jpg) no-repeat;
            background-size: cover;
        }
        .user {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-bottom: 20px;
            img {
                width: 80px;
                height: 80px;
                border-radius: 50%;
                margin-bottom: 10px;
                transition: all 0.75s ease;
                user-select: none;
                background: #fff;
                padding: 5px;
                transition: all 0.35s;
                &:hover {
                    transform: rotate(360deg);
                }
            }
            a {
                user-select: none;
                color: $baseColor;
                margin-bottom: 10px;
                font-size: 16px;
                font-weight: 500;
                &:hover {
                    text-decoration: underline;
                }
            }
            p {
                font-size: 14px;
                color: #212529;
                text-align: center;
                user-select: none;
            }
        }
        .webinfo {
            width: 100%;
            padding-bottom: 20px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(150, 150, 150, 0.1);
            .item {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                user-select: none;
                font-size: 14px;
                color: #666;
                .num {
                    max-width: 70px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    font-weight: 500;
                    font-size: 16px;
                    color: #333;
                    margin-bottom: 3px;
                }
                &:nth-child(2) {
                    border-left: 1px solid rgba(150, 150, 150, 0.1);
                    border-right: 1px solid rgba(150, 150, 150, 0.1);
                }
            }
        }
        .articles {
            width: 100%;
            overflow: hidden;
            padding-top: 15px;
            li {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 15px;
                a {
                    color: #444;
                    font-size: 14px;
                    max-width: 85%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    &:hover {
                        color: $baseColor;
                        text-decoration: underline;
                    }
                }
                svg {
                    width: 16px;
                    height: 16px;
                    fill: #666;
                }
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
    .aside-reply {
        background: #fff;
        .list {
            padding: 15px;
            max-height: 665px;
            overflow: hidden;
            li {
                margin-bottom: 15px;
                border-bottom: 1px dashed #eee;
                padding-bottom: 15px;
                user-select: none;
                &:last-child {
                    margin-bottom: 0;
                    border-bottom-color: transparent;
                    padding-bottom: 0;
                }
                .user {
                    display: flex;
                    margin-bottom: 12px;
                    img {
                        width: 40px;
                        height: 40px;
                        min-width: 40px;
                        min-height: 40px;
                        margin-right: 12px;
                        border-radius: 50%;
                    }
                    .info {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        .name {
                            font-size: 14px;
                            color: #364e65;
                            font-weight: 600;
                            max-width: 150px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }
                        span {
                            font-size: 12px;
                            color: #8599ab;
                        }
                    }
                }
                .reply {
                    position: relative;
                    background: #eef6fd;
                    border-radius: 6px;
                    padding: 5px 10px;

                    &::before {
                        content: '';
                        display: block;
                        width: 0;
                        height: 0;
                        border-bottom: 6px solid #f7f7f7;
                        border-left: 6px solid transparent;
                        border-right: 6px solid transparent;
                        position: absolute;
                        left: 15px;
                        bottom: 100%;
                    }
                    a {
                        display: none;
                        color: #8599ab;
                        font-size: 13px;
                        line-height: 20px;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        font-weight: 500;
                        &:hover {
                            color: $baseColor;
                        }
                    }
                }
            }
        }
    }
    .aside-cloud {
        background: #fff;
        .cloud {
            padding: 15px;
            svg {
                vertical-align: middle;
            }
        }
        #cloudList {
            display: none;
        }
    }
    .aside-wether {
        background: #fff;
        .content {
            padding: 15px;
        }
    }
    .aside-hot {
        background: #fff;
        ul {
            padding: 15px;
            li {
                margin-bottom: 15px;
                a {
                    position: relative;
                    display: block;
                    border-radius: 4px;
                    overflow: hidden;
                    &:hover {
                        img {
                            transform: scale(1.15);
                        }
                    }
                    img {
                        width: 100%;
                        height: 120px;
                        object-fit: cover;
                        transition: transform 0.35s;
                    }
                    .info {
                        position: absolute;
                        z-index: 1;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        padding: 10px;
                        background: linear-gradient(to bottom, rgba(6, 6, 6, 0), rgba(6, 6, 6, 0.7));
                        font-size: 12px;
                        p {
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            color: #fff;
                            line-height: 24px;
                            font-size: 14px;
                        }
                        span {
                            color: rgba(255, 255, 255, 0.5);
                        }
                    }
                    .tip {
                        position: absolute;
                        top: 5px;
                        right: -20px;
                        background: #7f7f8c;
                        color: #fff;
                        width: 65px;
                        text-align: center;
                        font-size: 12px;
                        transform: rotate(45deg);
                        font-weight: 500;
                    }
                }
                &:nth-child(1) {
                    a .tip {
                        background: #ff183e;
                    }
                }
                &:nth-child(2) {
                    a .tip {
                        background: #ff5c38;
                    }
                }
                &:nth-child(3) {
                    a .tip {
                        background: #ffb821;
                    }
                }
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
}

.j-barrager-list {
    display: none;
}

.j-barrager {
    display: flex;
    align-items: center;
    position: fixed;
    user-select: none;
    z-index: 999;
    height: 34px;
    border-radius: 17px;
    padding: 0 10px 0 7px;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    img {
        width: 24px;
        height: 24px;
        margin-right: 5px;
        border-radius: 50%;
    }
    p {
        max-width: 500px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        color: #fff;
    }
    &.off {
        opacity: 0;
    }
}

.j-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 20px;
    li {
        margin-left: 5px;
        a {
            display: block;
            height: 32px;
            line-height: 32px;
            color: #303133;
            font-size: 14px;
            padding: 0 15px;
            background: #fff;
            border-radius: 2px;
            transition: all 0.3s;
            user-select: none;
            &:hover {
                background: $baseColor;
                color: #fff;
            }
        }
        &.active {
            a {
                background: $baseColor;
                color: #fff;
                font-weight: 500;
            }
        }
    }
}

.j-footer {
    border-top: 1px solid rgba(152, 166, 173, 0.2);
    color: #98a6ad;
    font-size: 14px;
    height: 60px;
    .j-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 1220px;
        margin: 0 auto;
        height: 100%;
        cursor: default;
        .left {
            display: flex;
            align-items: center;
            .info {
                margin-right: 10px;
            }
            svg {
                width: 18px;
                height: 18px;
                margin-right: 5px;
            }
        }
        a {
            color: #98a6ad;
            &:hover {
                color: $baseColor;
            }
        }
        .right {
            a {
                margin-left: 24px;
            }
        }
    }
}

.j-bread {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
    li {
        user-select: none;
        color: #666;
        max-width: 500px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
        a {
            &:hover {
                color: $baseColor;
            }
        }
    }
    .line {
        color: #ccc;
        padding: 0 7px;
    }
}

.j-article {
    padding: 135px 0 30px;
    .mainer {
        display: flex;
        .contain {
            flex: 1;
            overflow: hidden;
            .article {
                background: #fff;
                padding: 20px;
                box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
                border-radius: 8px;
                margin-bottom: 20px;
                .tags {
                    position: relative;
                    display: flex;
                    align-items: center;
                    margin-bottom: 10px;
                    padding-right: 60px;
                    a {
                        color: #fff;
                        font-size: 12px;
                        background: $baseColor;
                        padding: 3px 8px;
                        margin-right: 5px;
                        border-radius: 2px;
                    }
                    .edit {
                        position: absolute;
                        padding: 0;
                        top: 50%;
                        right: 0;
                        transform: translateY(-50%);
                        margin-right: 0;
                        border-radius: 0;
                        background: transparent;
                        color: #888;
                        font-size: 14px;
                        &:hover {
                            color: $baseColor;
                        }
                    }
                }
                .header {
                    border-bottom: 1px solid #ebebeb;
                    margin-bottom: 20px;
                    #postTitleHtml {
                        display: none;
                    }
                    #postTitle {
                        font-size: 24px;
                        color: #333;
                        font-weight: 500;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        margin-bottom: 15px;
                        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
                        text-align: center;
                    }
                    .conting {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin-bottom: 15px;
                        .left {
                            display: flex;
                            align-items: center;
                            .image {
                                width: 35px;
                                height: 35px;
                                border-radius: 50%;
                                margin-right: 10px;
                            }
                            .meta {
                                display: flex;
                                flex-direction: column;
                                justify-content: space-between;
                                color: #939393;
                                font-size: 14px;
                                .head {
                                    a {
                                        font-size: 12px;
                                        color: $baseColor;
                                        &:hover {
                                            text-decoration: underline;
                                        }
                                    }
                                }
                                .body {
                                    display: flex;
                                    align-items: center;
                                    margin-bottom: 3px;
                                    .line {
                                        color: #e1e1e1;
                                        margin: 0 5px;
                                    }
                                    .included {
                                        color: #67c23a;
                                    }
                                    .unIcluded {
                                        color: #f56c6c;
                                    }
                                }
                            }
                        }
                        .right {
                            font-size: 32px;
                            color: #666;
                            user-select: none;
                            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
                        }
                    }
                }
                .markdown {
                    word-wrap: break-word;
                    font-size: 15px;
                    h1,
                    h2,
                    h3,
                    h4,
                    h5,
                    h6 {
                        margin: 20px 0;
                        border-left: 3px solid $baseColor;
                        padding: 0 15px;
                        color: #444;
                        font-weight: 400;
                    }
                    h1 {
                        font-size: 24px;
                    }
                    h2 {
                        font-size: 22px;
                    }
                    h3 {
                        font-size: 20px;
                    }
                    h4 {
                        font-size: 18px;
                    }
                    h5 {
                        font-size: 16px;
                    }
                    h6 {
                        font-size: 14px;
                    }
                    blockquote {
                        background: #f5fafd;
                        padding: 15px 20px;
                        border-left: 4px solid #cbcbcb;
                        margin: 20px 0;
                        p {
                            font-weight: 500;
                            margin: 0;
                        }
                    }
                    p {
                        color: #555;
                        line-height: 26px;
                        margin: 20px 0;
                        text-align: justify;
                    }
                    ol {
                        color: #555;
                        margin: 20px 0;
                        padding: 0 40px;
                        li {
                            list-style: decimal;
                            margin-bottom: 10px;
                            &:last-child {
                                margin-bottom: 0;
                            }
                        }
                    }
                    ul {
                        color: #555;
                        margin: 20px 0;
                        padding: 0 30px;
                        li {
                            position: relative;
                            margin-bottom: 10px;
                            &::before {
                                content: '';
                                position: absolute;
                                width: 5px;
                                height: 5px;
                                border-radius: 50%;
                                background-color: #3796f6;
                                left: -15px;
                                top: 50%;
                                margin-top: -2.5px;
                            }
                            &:last-child {
                                margin-bottom: 0;
                            }
                        }
                    }
                    em {
                        font-style: italic;
                    }
                    img {
                        display: block;
                        max-width: 100%;
                        margin: auto;
                        border-radius: 8px;
                        cursor: zoom-in;
                    }
                    a {
                        font-weight: 500;
                        color: $baseColor;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                    hr {
                        margin: 20px 0;
                        border: none;
                        height: 1px;
                        background-color: #e5e5e5;
                    }
                    strong {
                        font-weight: 500;
                    }
                    pre[class*='language-'] {
                        max-height: 550px;
                        &::-webkit-scrollbar-track {
                            border-radius: 0;
                            background: #fff;
                        }
                    }
                }
            }
            .timeline {
                li {
                    position: relative;
                    width: 3px;
                    margin: 0 auto;
                    background: $baseColor;
                    padding: 0 0 16px 0;
                    &::after {
                        content: '';
                        position: absolute;
                        left: 50%;
                        bottom: 0;
                        transform: translateX(-50%);
                        width: 12px;
                        height: 12px;
                        z-index: 2;
                        border: 2px solid $baseColor;
                        border-radius: 50%;
                        background: #fff;
                    }
                    &:nth-of-type(odd) a {
                        left: 25px;
                        transform: translate3d(100px, -10px, 0) rotate(10deg);
                    }
                    &:nth-of-type(even) a {
                        left: -325px;
                        transform: translate3d(-100px, -10px, 0) rotate(10deg);
                    }

                    a {
                        visibility: hidden;
                        opacity: 0;
                        position: relative;
                        display: block;
                        width: 300px;
                        height: 150px;
                        border-radius: 4px;
                        overflow: hidden;
                        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
                        transition: all 0.35s ease-in-out;
                        &.active {
                            transform: none;
                            visibility: visible;
                            opacity: 1;
                        }
                        &:hover {
                            transform: translate3d(0, -10px, 0);
                            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
                        }
                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                        h3 {
                            position: absolute;
                            top: 5px;
                            right: 5px;
                            background: $baseColor;
                            font-size: 14px;
                            font-weight: 400;
                            color: #fff;
                            padding: 3px 5px;
                            border-radius: 2px;
                        }
                        .info {
                            position: absolute;
                            z-index: 1;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            padding: 10px;
                            background: linear-gradient(to bottom, rgba(6, 6, 6, 0), rgba(6, 6, 6, 0.7));
                            font-size: 12px;
                            p {
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                color: #fff;
                                line-height: 24px;
                                font-size: 14px;
                            }
                            span {
                                color: rgba(255, 255, 255, 0.5);
                            }
                        }
                    }
                }
            }

            .leaving {
                position: relative;
                min-height: 700px;
                li {
                    display: none;
                    flex-direction: column;
                    cursor: move;
                    width: 200px;
                    height: 200px;
                    position: absolute;
                    border-radius: 8px;
                    overflow: hidden;
                    border-bottom-left-radius: 20px 500px;
                    border-bottom-right-radius: 500px 30px;
                    border-top-right-radius: 5px 100px;
                    box-shadow: 0 2px 10px 1px rgba(0, 0, 0, 0.2);
                    user-select: none;
                    .title {
                        height: 42px;
                        line-height: 42px;
                        padding: 10px;
                        display: flex;
                        align-items: center;
                        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
                        img {
                            width: 20px;
                            height: 20px;
                            border-radius: 50%;
                            margin-right: 5px;
                        }
                        span {
                            font-size: 14px;
                            color: #fff;
                            &:last-child {
                                color: #fff;
                                margin-left: auto;
                            }
                        }
                    }
                    .content {
                        flex: 1;
                        padding: 10px;
                        font-size: 14px;
                        color: #fff;
                        img {
                            width: 100%;
                        }
                        p {
                            display: -webkit-box;
                            -webkit-line-clamp: 5;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                }
            }

            .none {
                color: #666;
                user-select: none;
                font-size: 14px;
            }

            .page {
                display: flex;
                justify-content: space-between;
                margin-bottom: 20px;
                li {
                    list-style: none;
                    &.right {
                        margin-left: auto;
                    }
                    a {
                        display: block;
                        padding: 8px 18px;
                        color: #fff;
                        border-radius: 3px;
                        background: $baseColor;
                        font-size: 14px;
                        transition: all 0.3s;
                        &:hover {
                            opacity: 0.85;
                        }
                    }
                }
            }
        }
    }
}

.j-banquan {
    border-top: 1px solid #ebebeb;
    padding-top: 20px;
    margin-top: 20px;
    .content {
        background: #f8fafc;
        padding: 15px;
        .item {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: #999;
            margin-bottom: 5px;
            &:last-child {
                margin-bottom: 0;
            }
            svg {
                width: 18px;
                height: 18px;
                margin-right: 5px;
            }
            span {
                user-select: none;
            }
            a {
                color: #999;
                &:hover {
                    color: $baseColor;
                    text-decoration: underline;
                }
            }
        }
    }
}

.j-relevant {
    padding-top: 20px;
    .title {
        border-left: 3px solid $baseColor;
        padding-left: 15px;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 20px;
    }
    ul {
        display: flex;
        li {
            width: 25%;
            padding: 0 7.5px;
            a {
                display: block;
                transition: all 0.25s;
                img {
                    width: 100%;
                    height: 120px;
                    object-fit: cover;
                    margin-bottom: 5px;
                    border-radius: 4px;
                }
                span {
                    display: block;
                    width: 80%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    text-align: center;
                    margin: 0 auto;
                    font-size: 14px;
                    color: #666;
                }
                &:hover {
                    opacity: 0.85;
                    transform: translate3d(0, -5px, 0);
                    span {
                        color: $baseColor;
                    }
                }
            }
        }
    }
}

.j-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999999;
    cursor: zoom-out;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
    &.active {
        visibility: visible;
        opacity: 1;
    }
    img {
        max-width: 100%;
        max-height: 100%;
    }
}

.j-mask-white {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999999999;
}

.j-mask-black {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
    &.active {
        opacity: 1;
        visibility: visible;
    }
}

.j-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    width: 600px;
    display: flex;
    flex-direction: column;
    z-index: 9999999999;
    border-radius: 8px;
    overflow: hidden;
    visibility: hidden;
    transition: margin-top 0.35s, opacity 0.5s;
    margin-top: -100px;
    &.active {
        opacity: 1;
        margin-top: 0;
        visibility: visible;
    }
    .header {
        position: relative;
        background: $baseColor;
        height: 50px;
        line-height: 50px;
        text-align: center;
        color: #fff;
        padding: 0 15px;
        font-weight: 500;
        user-select: none;
    }
    .body {
        padding: 30px 15px;
        flex: 1;
        background: #fff;
        min-height: 179px;
        max-height: 179px;
        height: 179px;
        overflow-y: auto;
        font-size: 14px;
        color: #333;
        user-select: none;
    }
    .foot {
        padding: 15px;
        text-align: center;
        background: #fff;
        button {
            color: #fff;
            background: $baseColor;
            border: none;
            padding: 8px 20px;
            border-radius: 3px;
            transition: 0.35s;
            &:hover {
                opacity: 0.85;
            }
        }
    }
}

.j-comment {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    form {
        background: #f8f8f8;
        .head {
            display: flex;
            align-items: center;
            border-bottom: 1px solid #eee;
            input {
                flex: 1;
                border: none;
                background: transparent;
                padding: 0 20px;
                height: 45px;
                font-size: 14px;
                color: #666;
            }
            .line {
                flex: 1;
                position: relative;
                input {
                    width: 100%;
                }
                &::before,
                &::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 1px;
                    height: 15px;
                    background: #ddd;
                }
                &::before {
                    left: 0;
                }
                &::after {
                    right: 0;
                }
            }
        }
        .content {
            padding: 20px;
            padding-bottom: 0;
            textarea {
                background-color: transparent;
                width: 100%;
                height: 120px;
                border: none;
                resize: none;
                vertical-align: middle;
                background: url(../img/comment.png) right bottom no-repeat;
                font-size: 14px;
                transition: all 0.45s;
                color: #666;
                &:focus {
                    background-position-y: 120px;
                }
            }
            .canvas {
                position: relative;
                width: 100%;
                canvas {
                    cursor: url('../img/pencil.png') 13 23, crosshair;
                    background: #fff;
                    transition: box-shadow 0.35s;
                    &:hover {
                        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
                    }
                }
                ol {
                    position: absolute;
                    top: 15px;
                    left: 15px;
                    display: flex;
                    align-items: center;
                    li {
                        cursor: pointer;
                        font-size: 14px;
                        margin-left: 10px;
                        transition: all 0.35s;
                        &.active {
                            color: $baseColor;
                        }
                    }
                }
                ul {
                    position: absolute;
                    top: 15px;
                    right: 15px;
                    display: flex;
                    li {
                        cursor: pointer;
                        width: 20px;
                        height: 20px;
                        border-radius: 50%;
                        margin-right: 10px;
                        transition: all 0.35s;
                        &:nth-child(1) {
                            background: #000000;
                        }
                        &:nth-child(2) {
                            background: #ff0000;
                        }
                        &:nth-child(3) {
                            background: #80ff00;
                        }
                        &:nth-child(4) {
                            background: #00ffff;
                        }
                        &.active {
                            transform: translateY(-5px);
                            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
                        }
                    }
                }
            }
        }

        .foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 20px 15px;
            img {
                border-radius: 50%;
                width: 35px;
                height: 35px;
            }
            a {
                margin-right: 10px;
                &:hover {
                    color: $baseColor;
                }
            }
            button {
                border-radius: 4px;
                padding: 8px 15px;
                border: none;
                background: $baseColor;
                color: #fff;
                font-size: 14px;
                &:hover {
                    opacity: 0.85;
                }
            }
        }
    }
    .change {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        button {
            background: #f8f8f8;
            padding: 7px 15px;
            border: none;
            font-size: 14px;
            transition: all 0.35s;
            &.active {
                color: #fff;
                background: $baseColor;
            }
            &:first-child {
                border-top-left-radius: 6px;
            }
            &:last-child {
                border-top-right-radius: 6px;
            }
        }
    }
}

.j-comments {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
    .title {
        position: relative;
        font-weight: 500;
        text-align: center;
        font-size: 24px;
        color: #333;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        margin-bottom: 20px;
    }
    .close {
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        background: #f4f6fb;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        color: #333;
        padding: 15px;
        margin-bottom: 20px;
    }
    .comment-list {
        .j-comment {
            margin-left: 63px;
            animation: showComment 0.5s;
            form .body {
                background: none;
            }
        }
        li {
            .item {
                display: flex;
                margin-bottom: 20px;
                .left {
                    width: 48px;
                    height: 48px;
                    border-radius: 50%;
                    margin-right: 15px;
                    padding: 3px;
                    border: 1px solid #ebebeb;
                }
                .right {
                    flex: 1;
                    border-bottom: 1px solid #ebebeb;
                    padding-bottom: 15px;
                    .name {
                        display: flex;
                        align-items: center;
                        font-size: 14px;
                        color: #333;
                        margin-bottom: 8px;
                        line-height: 20px;
                        span {
                            margin-right: 10px;
                        }
                        i {
                            display: none;
                            background: $baseColor;
                            font-size: 14px;
                            color: #fff;
                            padding: 0 5px;
                            border-radius: 2px;
                            &.comment-by-author {
                                display: block;
                            }
                        }
                    }
                    .content {
                        display: none;
                        width: 100%;
                        background: #f4f6fb;
                        padding: 10px 15px;
                        border-radius: 4px;
                        font-size: 14px;
                        color: #333;
                        margin-bottom: 8px;
                        .parent {
                            color: #388bff;
                            margin-bottom: 5px;
                            user-select: none;
                            font-weight: 500;
                        }
                        p {
                            display: flex;
                            flex-wrap: wrap;
                            align-items: center;
                            word-break: break-all;
                            white-space: pre-wrap;
                            .canvas {
                                width: 100%;
                            }
                        }
                    }
                    .meta {
                        display: flex;
                        align-items: center;
                        font-size: 14px;
                        span {
                            color: #969fb7;
                            margin-right: 10px;
                        }
                        a {
                            display: flex;
                            align-items: center;
                            color: #333;
                            font-size: 13px;
                            svg {
                                width: 15px;
                                height: 15px;
                                margin-right: 5px;
                                fill: #333;
                            }
                            &:hover {
                                color: $baseColor;
                                svg {
                                    fill: $baseColor;
                                }
                            }
                        }
                    }
                }
            }
            .comment-children {
                padding-left: 63px;
            }
        }
    }
}

.j-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 35px;
    line-height: 35px;
    border-radius: 17.5px;
    z-index: 99999999;
    color: #fff;
    text-align: center;
    background: #e6a23c;
    transition: all 0.35s;
    font-size: 15px;
    &.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
    }
}

.j-leaving {
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22);
    border-radius: 8px;
}
